package com.jutixeuyuan.controller;

import com.jutixeuyuan.service.CommentService;
import com.jutixueyuan.pojo.LivegoodsResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CommentController {

    @Autowired
    private CommentService commentService;

    @GetMapping("/comment")
    public LivegoodsResult comment(String id){
       LivegoodsResult livegoodsResult = commentService.selectCommentById(id);
       return  livegoodsResult;
    }
}
